package com.ruoyi.project.drug.service;

import com.ruoyi.project.drug.domain.DrugOrderCustom;
import com.ruoyi.project.drug.domain.DrugOrderDetail;

import java.util.List;

/**
 * @Classname IDrugOrderCustomService
 * @Description
 * @Date 2022/6/28 23:04
 * @Author Lee
 */
public interface IDrugOrderCustomService {
    List<DrugOrderCustom> selectDrugOrderCustomList(DrugOrderCustom drugOrderCustom);
    /**
     * 新增采购单据
     * @param supportId 供应商主键
     * @param createBy 登录用户名字
     * @param orderDetails 采购单据明细集合
     * @return
     */
    int insertDrugOrderAndDetails(Integer supportId, Double orderTotal, String createBy, List<DrugOrderDetail> orderDetails);
}
